package tt.com.financialmanagement.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import tt.com.common.model.YxCommonPurchase;
import tt.com.financialmanagement.service.YxCommonPurchaseServeService;

@RestController
@RequestMapping(value = "detailed/procurement")
//采购单的前端-后端/api/Procurement/business/xxxx
public class YxCommonPurchaseServeController {

    @Autowired
    private YxCommonPurchaseServeService yxCommonPurchaseServeService;
    //根据采购单查看详细信息
    @PostMapping(value = "select/detailed")
    public ResponseEntity selectDetailed(@RequestBody YxCommonPurchase yxCommonPurchase){
        return yxCommonPurchaseServeService.selectByWuID(yxCommonPurchase);
    }
}
